function resize_plot(h,width,height,font_size)
%uses matlabfrag to save a .eps and .tex file of the desired width and
%height and font size.

set(findall(h,'type','text'),'fontSize',font_size);
set(findall(h,'type','axes'),'fontSize',font_size);

set(h,'units','inches');
pos = get(h,'position');
set(h,'position',[pos(1:2),width,height]);